public class User {
    private String account;
    private String password;
    private String email;

    public User(String account, String password, String email) {
        this.account = account;
        this.password = password;
        this.email = email;
    }

    public User(String account, String password) {
        this.account = account;
        this.password = password;
        this.email = "";
    }
    public void getInformation() {
        System.out.println("账号："+account+",密码："+password+",邮箱:"+email);
    }
}
class Main{
    public static void main(String[]args){
        User user1=new User("a1","p1","e1");
        user1.getInformation();
        User user2=new User("a2","p2");
        user2.getInformation();
    }}

